From 6ab1f581f892744fabd7c873be22699bd52b2f7a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 2 May 2024 16:19:45 -0700
Subject: feat(BadgePreview): navigate using badge side

---
 src/routes/user/[user]/badges/+page.svelte | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/routes/user/[user]/badges/+page.svelte')

diff --git a/src/routes/user/[user]/badges/+page.svelte b/src/routes/user/[user]/badges/+page.svelte
index 22182138..b7c5ca2d 100644
--- a/src/routes/user/[user]/badges/+page.svelte
+++ b/src/routes/user/[user]/badges/+page.svelte
@@ -941,7 +941,11 @@
 								selectedBadge = undefined;
 							}}
 						>
-							<BadgePreview bind:selectedBadge />
+							<BadgePreview
+								bind:selectedBadge
+								onNext={() => setAdjacentCursor(ungroupedBadges, 1)}
+								onPrevious={() => setAdjacentCursor(ungroupedBadges, -1)}
+							/>
 
 							{#if anyAdjacentBadgeExists}
 								<p />
-- 
cgit v1.2.3

